import instance from "./request";

export let shezhi=()=>{
    return instance.get('/shezhi')
}

export let del=(id)=>{
    return instance.delete(`/shezhi/${id}`)
}

export let add=(obj)=>{
    return instance.post('/shezhi',obj)
}

export let update=(obj)=>{
    return instance.patch(`/shezhi/${obj.id}`,obj)
}

export let search=(title)=>{
    return instance.get('/shezhi',{params:title})
}